import Instance from '@/utils/http.ts';

export function getAllPermissionsAPI() {
    return Instance({
        url: '/sys-permission/getAll',
        method: 'GET',
    })
}

export function getByUserIdAPI(id:number) {
    return Instance({
        url:'/user-permission/getByUserId/',
        method:'GET',
        params:{
            userId:id
        }
    })
}


